<template>
  <div>
    <h1>我是一级路由，首页数据 {{ userStore.username }}</h1>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'

import useUserStore from '@/store/modules/user'
let userStore = useUserStore()

onMounted(() => {
  userStore.userInfo()
})
</script>

<style scoped></style>
